package init;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by wangyg 
 * on 2017/3/23 9:46
 */
public class Main {

	public static void main(String[] args) {

		ClassPathXmlApplicationContext  context = new ClassPathXmlApplicationContext("spring-context.xml");

		PersonService personService = (PersonService) context.getBean("personService");

		personService.sout();

		context.close();
	}

}
